package com.workstudy.workstudy.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.workstudy.common.annotation.Excel;
import com.workstudy.common.core.domain.BaseEntity;

/**
 * 岗位对象 workstudy_post
 * 
 * @author ws
 * @date 2021-03-28
 */
public class WorkstudyPost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 岗位id */
    private Long postId;

    /** 岗位名称 */
    @Excel(name = "岗位名称")
    private String postName;

    /** 工作内容 */
    @Excel(name = "工作内容")
    private String postContent;

    /** 所需人数 */
    @Excel(name = "所需人数")
    private Long people;

    /** 已报名人数 */
    @Excel(name = "已报名人数")
    private Long oldpeople;

    /** 工作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "工作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date postTime;

    /** 工作地点 */
    @Excel(name = "工作地点")
    private String postAddr;

    /** 工资 */
    @Excel(name = "工资")
    private BigDecimal price;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 发布者 */
    @Excel(name = "发布者")
    private String announcerBy;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date announcerTime;

    /** 审核者 */
    @Excel(name = "审核者")
    private String approvalBy;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date approvalTime;

    public void setPostId(Long postId) 
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }
    public void setPostName(String postName) 
    {
        this.postName = postName;
    }

    public String getPostName() 
    {
        return postName;
    }
    public void setPostContent(String postContent) 
    {
        this.postContent = postContent;
    }

    public String getPostContent() 
    {
        return postContent;
    }
    public void setPeople(Long people) 
    {
        this.people = people;
    }

    public Long getPeople() 
    {
        return people;
    }
    public void setOldpeople(Long oldpeople) 
    {
        this.oldpeople = oldpeople;
    }

    public Long getOldpeople() 
    {
        return oldpeople;
    }
    public void setPostTime(Date postTime) 
    {
        this.postTime = postTime;
    }

    public Date getPostTime() 
    {
        return postTime;
    }
    public void setPostAddr(String postAddr) 
    {
        this.postAddr = postAddr;
    }

    public String getPostAddr() 
    {
        return postAddr;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setAnnouncerBy(String announcerBy) 
    {
        this.announcerBy = announcerBy;
    }

    public String getAnnouncerBy() 
    {
        return announcerBy;
    }
    public void setAnnouncerTime(Date announcerTime) 
    {
        this.announcerTime = announcerTime;
    }

    public Date getAnnouncerTime() 
    {
        return announcerTime;
    }
    public void setApprovalBy(String approvalBy) 
    {
        this.approvalBy = approvalBy;
    }

    public String getApprovalBy() 
    {
        return approvalBy;
    }
    public void setApprovalTime(Date approvalTime) 
    {
        this.approvalTime = approvalTime;
    }

    public Date getApprovalTime() 
    {
        return approvalTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("postId", getPostId())
            .append("postName", getPostName())
            .append("postContent", getPostContent())
            .append("people", getPeople())
            .append("oldpeople", getOldpeople())
            .append("postTime", getPostTime())
            .append("postAddr", getPostAddr())
            .append("price", getPrice())
            .append("status", getStatus())
            .append("announcerBy", getAnnouncerBy())
            .append("announcerTime", getAnnouncerTime())
            .append("approvalBy", getApprovalBy())
            .append("approvalTime", getApprovalTime())
            .toString();
    }
}
